
import myEvent from "./observe_fun.js";
// var div = document.getElementById("showcount");
// myEvent().listen('add',function(count){
//   console.log(333333)
//     div.innerHTML = count;
// });
// var count = 0;
// var button = document.getElementById("count");
// button.onclick = function(){
//   myEvent().trigger("add",count++);
// }


var div = document.getElementById("showcount");
myEvent().listen('add',function(count){
  console.log('add listen is call')
  
});
var count =0
myEvent().trigger("add",count++);


var showFun = function(){
  console.log('show listen is called')
}

myEvent().listen('show',showFun);

myEvent().remove('show',showFun);

myEvent().trigger('show',0)



